<%= form_for @version do |f| %>
<div class="form-group">
  <%= f.label @version.app.name, class: 'hidden-xs' %>
</div>
<div class="form-group">
  <%= f.label :version, '版本号', class: 'placeholder-label', style: 'z-index: 100' %>
  <%= f.text_field :version, class: 'form-control', placehoder: '版本号' %>
</div>
<div class="form-group">
  <%= f.label :success, '启动成功次数', class: 'placeholder-label', style: 'z-index: 100' %>
  <%= f.text_field :success, class: 'form-control', placehoder: '启动成功次数' %>
</div>
<div class="form-group">
  <%= f.label :typehood, '类型', class: 'placeholder-label', style: 'z-index: 100' %>
  <%= f.text_field :typehood, class: 'form-control', placehoder: '类型' %>
</div>
<div class="form-group">
  <%= f.label :source, '来源', class: 'placeholder-label', style: 'z-index: 100' %>
  <%= f.text_field :source, class: 'form-control', placehoder: '来源' %>
</div>
<div class="form-group">
  <%= f.label :description, '迭代版本特点', class: 'placeholder-label', style: 'z-index: 100' %>
  <%= f.text_field :description, class: 'form-control', placehoder: '迭代版本特点' %>
</div>
<div class="form-group">
  <%= f.label :dev_id, '开发者', class: 'placeholder-label', style: 'z-index: 100' %>
  <%= f.collection_select :dev_id, User.all, :id, :name, {include_blank: true}, {class: 'form-control'} %>
</div>
<div class="form-group">
  <%= f.label :released_date, '发布日期', class: 'placeholder-label', style: 'z-index: 100' %>
  <%= f.text_field :released_date, class: 'form-control', placehoder: '发布日期', onfocus: "(this.type='date')",onblur: "(this.type='text')"  %>
</div>
<div class="form-group">
  <%= f.submit '更新', class: 'btn btn-primary btn-flat btn-block', data: {disable_with: '更新中...'} %>
</div>
<% end %>
<script>
$(document).ready(function(){
  $('input[placeholder], textarea[placeholder]').placeholderLabel();
});
</script>